package com.java.springboot.config;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class configActivemq {

    @Value("${queue}")
    private String queue;

    @Bean
    public ActiveMQQueue queue(){
        return new ActiveMQQueue(queue);
    }

}
